
Rem
bbdoc: Game state transition.
endrem
Type TTransition Abstract


	rem
	bbdoc: Transition effect color and alpha.
	endrem
	Field _color:TColor = TColor.Create(0,0,0,1.0)
	
	rem
	bbdoc: Transition effect length.
	endrem
	Field _transitionLength:Int = 1000


	rem
	bbdoc: User hook to initialize effect.
	endrem
	Method Initialize() Abstract

	
	rem
	bbdoc: Perform transition action.
	endrem	
	Method Update(delta:Double) Abstract
	
	
	rem
	bbdoc: Render transition effect.
	endrem	
	Method Render(g:TGame) Abstract
	
	
	rem
	bbdoc: Returns true if the transition is complete.
	endrem
	Method IsComplete:Int() Abstract
	
		
	rem
	bbdoc: Sets transition effect length (in millisecs)
	endrem
	Method SetLength(l:Float)
		_transitionLength = l
	End Method
	
	
	rem
	bbdoc: Sets transition effect color.
	endrem
	Method SetColor(r:Int, g:Int, b:Int)	
		_color.Set(r,g,b, _color.GetAlpha())	
	End Method
	
End Type
